import request from '@/utils/request'

// 查询参数下发指令任务设备列表
export function listCommandTask(query) {
  return request({
    url: '/device/command/task/list',
    method: 'get',
    params: query
  })
}

export function listTaskParams(query) {
  return request({
    url: '/device/command/task/params/list',
    method: 'get',
    params: query
  })
}

export function cancelTask(taskId) {
  return request({
    url: '/device/command/task/cancel/' + taskId,
    method: 'put',
  })
}
